package com.erlang.spring.controller;

import com.erlang.spring.pojo.Account;
import com.erlang.spring.service.AccountService;

import java.util.List;

/**
 * @Description：账户服务,controller层
 */
public class AccountController {

  private AccountService accountService;

  public void findAll() {
    List<Account> list = accountService.findAll();
    for (Account account : list) {
      System.out.println("List<Account>：" + account.toString());
    }

  }

  public void setAccountService(AccountService accountService) {
    this.accountService = accountService;
  }
}
